home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************
- * *
- * $VER: SelectNOT.pvrx 3.0 (16.Apr.94) *
- * Copyright © 1993 by Stylus, Inc. *
- * Author: Jeff Blume *
- * *
- * This macro selects all objects NOT selected; Deselects those selected. *
- * *
- * *
- ***************************************************************************/
-
-
- /*
- call open STDOUT,"RAM:RxOut.txt",W
- call open STDERR,"RAM:RxErr.txt",W
- trace R
- */
-
-
- /* Try to get exclusive lock on project window.
- If can't get lock, not polite to interrupt. */
- 'Lock Wait'
-
- options results
-
- /* Get list of Layer names */
- 'GetLayers' LayList; NumLay = Result
-
- /* Loop through list of layers */
- do k=0 for NumLay
- 'LayerStatus' LayList.k; if Result=HIDE | Result=LOCK then iterate k
- /* Select all objs not selected in layer */
- 'FirstObj' LayList.k; if Result = 0 then iterate k; else Objs.0 = Result
- do i = 0
- 'Selected' Objs.i; Sel = Result
- if Sel ~=0 then 'UnSelect' Objs.i
- else 'SelectObj' Objs.i
- j = i + 1
- 'NextObj' Objs.i; Objs.j = Result
- if Objs.j = 0 then leave i
- end
- end /* NumLay loop */
-
- 'UnLock'
-